/*
* jlb
*/
package com.jlb.jlb.entity;

/**
 * 金兰宝矿石转账记录 的实体类的状态
 * 类型 金兰宝  JLB ,矿石 ORE
 *
 * @author jlb
 */
public enum JlbOreLogType implements java.io.Serializable {
    JLB("金兰宝"),
    ORE("矿石");

    public String val;

    JlbOreLogType(String val) {
        this.val = val;
    }

    /**
     * 根据状态名称查询状态
     *
     * @param stateName
     * @return
     */
    public static JlbOreLogType getEnum(String stateName) {
        for (JlbOreLogType jlbOreLogState : JlbOreLogType.values()) {
            if (jlbOreLogState.name().equalsIgnoreCase(stateName)) {
                return jlbOreLogState;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.name();
    }

}
